package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 普通用户管理对象 simpleuser
 *
 * @author ruoyi
 * @date 2024-10-23
 */
public class Simpleuser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** UserId */
    @Excel(name = "UserId")
    private String UserId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String name;

    /** 头像 */
    @Excel(name = "头像")
    private String img;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 性别 */
    @Excel(name = "性别")
    private String sex;

    /** VIP等级 */
    @Excel(name = "VIP等级")
    private String level;

    /** 账户余额 */
    @Excel(name = "账户余额")
    private Long balance;

    /** 在线状态 */
    @Excel(name = "在线状态")
    private Long presence;

    /** 主播认证 */
    @Excel(name = "主播认证")
    private Long certified;

    /** 注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdate;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(String UserId)
    {
        this.UserId = UserId;
    }

    public String getUserId()
    {
        return UserId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setImg(String img)
    {
        this.img = img;
    }

    public String getImg()
    {
        return img;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setSex(String sex)
    {
        this.sex = sex;
    }

    public String getSex()
    {
        return sex;
    }
    public void setLevel(String level)
    {
        this.level = level;
    }

    public String getLevel()
    {
        return level;
    }
    public void setBalance(Long balance)
    {
        this.balance = balance;
    }

    public Long getBalance()
    {
        return balance;
    }
    public void setPresence(Long presence)
    {
        this.presence = presence;
    }

    public Long getPresence()
    {
        return presence;
    }
    public void setCertified(Long certified)
    {
        this.certified = certified;
    }

    public Long getCertified()
    {
        return certified;
    }
    public void setCreatedate(Date createdate)
    {
        this.createdate = createdate;
    }

    public Date getCreatedate()
    {
        return createdate;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("UserId", getUserId())
            .append("name", getName())
            .append("img", getImg())
            .append("phone", getPhone())
            .append("sex", getSex())
            .append("level", getLevel())
            .append("balance", getBalance())
            .append("presence", getPresence())
            .append("certified", getCertified())
            .append("createdate", getCreatedate())
            .append("status", getStatus())
            .toString();
    }
}
